﻿
package kliment.display.draw.style {
	import flash.display.BitmapData;
	import flash.geom.Matrix;

	/**
	* ...
	* @author Kliment
	*/
	public class BitmapFillStyle {
		public var bitmap:BitmapData;
		public var matrix:Matrix;
		public var repeat:Boolean;
		public var smooth:Boolean;

		public function BitmapFillStyle(bitmap:BitmapData, matrix:Matrix = null, repeat:Boolean = true, smooth:Boolean = false) {
			this.bitmap = bitmap;
			this.matrix = matrix;
			this.repeat = repeat;
			this.smooth = smooth;
		}

		public function clone():BitmapFillStyle {
			return new BitmapFillStyle(bitmap, matrix, repeat, smooth);
		}
	}
}
